package io.renren.dao;

import io.renren.entity.CourseteacherEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import io.renren.entity.CourseuserEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 
 * 
 * @author Mark
 * @email sunlightcs@gmail.com
 * @date 2019-10-29 14:02:48
 */
@Mapper
public interface CourseteacherDao extends BaseMapper<CourseteacherEntity> {
    void addTeacherAnswer(@Param("courseid") Integer courseid, @Param("userid")Integer userid, @Param("answer")String answer);

    List<CourseteacherEntity> getCourseTeacher(@Param("userid")Integer userid);

    CourseteacherEntity getCourseTeacherByUserIdAndCourseid(@Param("courseid")Integer courseid, @Param("userid")Integer userid);
}
